package com.cqgc.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Order {

    private int oid;
    private int gid;
    private String address;
    private int providerId;
    private int consumerId;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime updateTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime createTime;
    private String goodsName;  //商品名称
    private int status; //订单状态
    private String orderNumber; //订单编号
    private int quantity;  //商品数量
    private double totalPrice; //订单总价
    private String alipayNo; //支付宝订单号
}
